<?php
/*
Copyright 2008, Nathalia


Author:
Nathalia Sautchuk Patrício          (nathalia.sautchuk@gmail.com)

*/
class UserRecord extends TActiveRecord
{
    const TABLE='Usuario';
    public $UsuarioID;
	public $Nome;
	public $Login;
	public $Senha;
	public $DataNascimento;
	public $Email;
    public $CPF;
    public $Papel;
    public $Endereco;
    public $CEP;
    public $Cidade;
    public $Estado;
    public $Pais;
    public $Telefone;
    public $DataCadastro;
    public $InstituicaoID;
 
    public static $RELATIONS=array
    (
        'instituicao' => array(self::BELONGS_TO, 'InstituicaoRecord', 'InstituicaoID'),
        'avaliador'   => array(self::HAS_MANY, 'AvaliacaoRecord', 'AvaliadorID'),
        'artigos'     => array(self::MANY_TO_MANY, 'ArtigoRecord', 'ArtigoAutor'),
        'congresso'   => array(self::HAS_ONE, 'CongressoRecord', 'CongressoID'),
    );

    public static function finder($className=__CLASS__)
    {
        return parent::finder($className);
    }
}
?>
